<template>
	<view>
		<u-navbar :title="title" safeAreaInsetTop fixed placeholder :autoBack="true"></u-navbar>
		
		{{post.title}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				post: {
				}
			}
		},
		onLoad(options) {
			this.getPost(options.pid)
		},
		methods: {
			getPost(pid) {
				this.post = {
					id: pid,
					category: {
						id: '1',
						title: '招聘'
					},
					title: '测试一下2222',
					tags: [
						{
							id: '1',
							name: '包吃',
							type: 'primary',
							size: 30,
							shape: 'square',
							plain: true,
							plainFill: true
						},
						{
							id: '2',
							name: '包住',
							type: 'primary',
							size: 30,
							shape: 'square',
							plain: true,
							plainFill: true
						},
						{
							id: '3',
							name: '社保',
							type: 'primary',
							size: 30,
							shape: 'square',
							plain: true,
							plainFill: true
						}
					],
					user: {
						nickName: '张三'
					},
					publishTime: '2023-10-12 15:17:10',
					readCount: 1001,
					collectCount: 10
				}
				this.title = this.post.category.title + '详情'
			}
		}
	}
</script>

<style>

</style>
